package com.tuling.jvm.classloader;

/**
 * Created by chenhs on 2018/8/19.
 */
public class Demo2 {
    public static void main(String[] args) {

        //sun.misc.Launcher$AppClassLoader@18b4aac2
        System.out.println(Demo2.class.getClassLoader());
        ClassLoader loader = Demo2.class.getClassLoader();
        while (null != loader){
            System.out.println(loader);
            loader = loader.getParent();
        }
        System.out.println(loader);
    }
}
